package com.cloudfun.campusshare.configuration.jpa.util;


import com.cloudfun.campusshare.configuration.jpa.specification.SpecificationModel;

import javax.persistence.criteria.Predicate;

/**
 * @author 王溪源
 * @ClassName: PredicateBuilder
 * 辅助JpaRestrictionBuilder 类创建PropertyFilter后使用哪种约束条件向CriteriaBuilder添加
 * Predicate 进行条件过滤查询的接口
 * @Description: TODO
 * @Date 2020/8/7 18:12
 **/
public interface PredicateBuilder {
    Predicate build(PropertyFilter filter, SpecificationModel model);


    String getRestrictionName();

    Predicate build(String propertyName, Object value, SpecificationModel model);
}
